Error bars for solid-state density-functional theory predictions