Efficient frequency allocation in mobile networks for optimizing service quality and resource management