Traces of Orlicz‐Sobolev functions under general growth restrictions