Split all capillary function into smaller one.

Use function pointers, should work some faster, probably.
Add YADE_SPH macroses to fix FTBFS, when SPH disabled

Thanks Jan for pointing that out.