Onset of plastic yielding in thin metal lines deposited on substrates