Reflection symmetric second-order topological insulators and superconductors