Nuclear mass number dependence of inclusive production of {omega} and {phi} mesons in 12 GeV p+A collisions