Describe the functions of the frontal lobe, temporal lobe, occipital lobe, and parietal lobe.