Josephson effect in junctions of conventional and topological superconductors