Gradients in the ab initio scalar zeroth-order regular approximation (ZORA) approach