Gravitational waves from inspiralling compact binaries: Energy loss and waveform to second-post-Newtonian order | Synapse