Reconstruction of the neutrino mixing matrix and leptonic unitarity triangles from long-baseline neutrino oscillations