An optimization-based method for geometrical calibration in cone-beam CT without dedicated phantoms