Physics for the IB diploma: standard and higher level