Measuring Innovation with Patent Data: an Application to Low Carbon Energy Technologies