Transfer printing as a method for fabricating hybrid devices on flexible substrates