A study of polar lipid drug systems undergoing a thermoreversible lamellar-to-cubic phase transition