An On-Chip Temperature Sensor for the Measurement of RF Power Dissipation and Thermal Gradients