Luminous blue variables and the fates of very massive stars