Maximal and minimal solutions for multivalued differential equations