Energy-saving mechanism based on double-sleep-state algorithm and dynamic double-threshold receiver selection in EPON