Scaling rules in optomechanical semiconductor micropillars