A former social worker has been convicted of physically and sexually assaulting children at a Dr Barnardo’s residential home in East Lothian.