Gaudin models with irregular singularities