Heat pump and refrigeration cycle