Generative Category-Level Shape and Pose Estimation with Semantic Primitives