Exact cone beam reconstruction formulae for functions and their gradients for spherical and flat detectors. (20th September 2016)