Ab-initio calculation of positron annihilation rates in solids