Theoretical study of molecular properties of low-lying electronic excited states of H2O and H2S