 Complete the following phrase:  His military career began in 1841, when he entered the Royal Artillery College at Segovia. He became a lieutet in 1846 and a captain in 1855. Pavía returned to Spain after fighting in the Hispano-Moroccan War 185960 and in the 