An introduction to astrobiology