Probing contextuality with pre- and post-selection