Sampling-based exploration of the folded state of a protein under kinematic and geometric constraints