Casimir effect for a sphere and a cylinder in front of a plane and corrections to the proximity force theorem