Applications of Hamilton's principle to continua with singular surfaces