Optimizing resource allocation in next-generation optical access networks