The basics of gravitational wave theory