Next Generation Passive Optical Networks: Theory and Applications