Spatial and temporal signal processing and decision making by MAPK pathways