Adaptation strategies of Streptococcus pneumoniae and Staphylococcus aureus under infection conditions