Technology and costs in international competitiveness: From countries and sectors to firms