Physical constraint-aware CNOT quantum circuit synthesis and optimization