Exciton formation in strongly correlated electron-hole systems near the semimetal-semiconductor transition