Positivity bounds for massive spin-1 and spin-2 fields