Compressed magnetized shells of atomic gas and the formation of the Corona Australis molecular cloud