Optical superfluid phase transitions and trapping of polariton condensates.