Optical and infrared phase curves of the lava planet K2-141 b