Quantization of propagating modes in optical fibres