Physical computation: a mechanistic account