What two structures do many flatworms have to help them sense their environment?