María Luisa Carvajal Dávalos — 4th Duchess of San Carlos, Spanish courtier