Muscles of mastication are supplied by: