Critical exponents from parallel plate geometries subject to periodic and antiperiodic boundary conditions