G-parity violation of weak nucleon current and in-medium mass renormalization of nucleons detected through the β decays of spin aligned 12B and 12N