Failure as an active agent in the development of creative and inventive mindsets