Wetting phase transition of two segregated Bose–Einstein condensates restricted by a hard wall