Factor out function parser building into DerivativeParsedMaterialHelper

Factor out the building of parsed functions. This allows to cleanly create classes that build parsed functions not from the standard input parameters (e.g. hardcoded function expression strings). Closes #3888