Generation and characterization of Werner states and maximally entangled mixed states by a universal source of entanglement