Fundamental limits on the energy consumption in fiber-optic communications