Smeared nematic quantum phase transitions due to rare-region effects in inhomogeneous systems