A mother has been found guilty of murdering her two young sons.