docs: fix and update description of defining material parameters by functions