Density functional theory study of NOx adsorption on alkaline earth metal oxide and transition metal surfaces