Structure of collisional and collisionless sheaths: closed expressions for sheath thickness