Buoyancy-thermocapillary instability: the role of interfacial deformation in one- and two-component fluid layers heated from below or above