Modeling Power and Energy Usage of HPC Kernels