Preston North End have confirmed Simon Grayson as their new manager following Graham Westley's departure.