Crystallization of soft matter under confinement at interfaces and in wedges