A deep learning based approach for automatic detection of COVID-19 cases using chest X-ray images