Sheath and presheath in a collisionless plasma with a Maxwellian source