Energy saving mechanism based on sleep mode and dynamic double-threshold link selection in EPON