Masses of vector and pseudoscalar mesons in the quark loop model