RefleX: X-ray absorption and reflection in active galactic nuclei for arbitrary geometries