Extended and sandwich versions of the Hahn-Banach theorem☆