Dynamics of epidemic spreading over networks with agent awareness