Measuring Energy and Power with PAPI