Interpreting the charge-dependent flow and constraining the chiral magnetic wave with event shape engineering