An East Lothian man who sexually assaulted two young girls is facing a lengthy jail sentence.