Direct chemical functionalization of as-grown electroactive polypyrrole film containing leaving groups