Using information about technologies, markets and firm behaviour to decompose a proper productivity index