Transport matrix of a solenoid with linear fringe field