Matusz, Orioles beat Rays, stop 6-game losing skid