Supersonic flow past a bluff body with a detached shock Part I Two-dimensional body