Photonic ATM switch based on a multiwavelength fiber-loop buffer