Fundamentals of Beam Physics