Energy management in wireless communications : from convex optimization to machine learning