Volumetric variational principles for a class of partial differential equations defined on surfaces and curves