Spacetime entanglement entropy of de Sitter and black hole horizons