Effects of a Moving Load on a Nonhomogeneous Bridge Beam