An introduction to nuclear reactor theory