The method of virtual power in continuum mechanics application to media presenting singular surfaces and interfaces