A lightweight CNN-based network on COVID-19 detection using X-ray and CT images