Linear chains of hydrogen molecules under pressure: An extreme-pressure continuum model study