The formation of protostellar disks. 2: Disks around intermediate-mass stars