Variational analysis of mass spectra and decay constants for ground state pseudoscalar and vector mesons in the light-front quark model