dg1d: update `lgl` and `glgl` integration methods
- put the integrand as the first argument
- add integration methods that can work with a function argument
- add doc strings
- update usage of
integrate
functions in rest of code
integrate
functions in rest of code