Yarkovsky–O’Keefe–Radzievskii–Paddack effect on tumbling objects