Computing the closest singular matrix polynomial