Dynamic power optimization of the 8051 microcontroller core in embedded systems