Thin film stress sensor suitable for different substrates