Solar driven heat pump for cooling and desalination