Junctions between three-dimensional and two-dimensional nonlinearly elastic structures