A brief and unhappy visit to Majorca with Sand in 1838–39 was one of his most productive periods of composition