Text this: A Three-Stage On-Device Machine Learning Pipeline for Service-Aware Power Optimization in 5G User Equipment