Create the functions kernel for gravmag.prism

**Update by @leouieda**:

Checklist:

- [ ] Cookbook recipes for new functions (if intended for user, not developer)
- [ ] Docstrings
- [ ] Doctests and unitests
- [ ] All tests pass
- [ ] Can be merged
- [ ] Changelog entry
- [ ] Benchmark against old implementation