The GW method for computing electronic excited states of molecules and solids