Correlation effects for positron annihilation with core and semicore electrons