Waiting time analysis of gated polling system for bandwidth allocation in a passive optical network