Stellar population synthesis of galactic nuclei