Chemical abundances and ionizing clusters of H ii regions in the LINER galaxy NGC 4258