Sophia Matilda, Princess of Gloucester, 1773-1844