Decay constants of pseudoscalar and vector B and D mesons in the light-cone quark model