Internal ballistics of solid-fuel rockets