On the quantization of Poincaré and de Sitter gauge models