Static and dynamic moduli of weak sandstones