A Unified Framework for Rerandomization using Quadratic Forms | Synapse