10-year sentence for man who opened fire in San Diego police