Electronic and mechanical systems printed onto flexible substrates