Screened hybrid density functionals applied to solids